﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ServerSetting
{
    public partial class InputDialogForm : Form
    {
        public string Input = "";

        public InputDialogForm()
        {
            InitializeComponent();
            btnOK.Click += BtnOKClick;
        }

        public InputDialogForm(string title,string tip):this()
        {
            Text = title;
            lbTip.Text = tip;
        }

        public virtual void BtnOKClick(object sender,EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Close();
            Input = txtInput.Text;
        }

    }
}
